File manager - Edit - /home/autoph/public_html/projects/AutoHub-Kiosk-Final/resources/views/admin/management/profile.blade.php
Back
<div> <div class="row mb-2"> <div class="col-md-4"> <form action="{{url('update-profile')}}" id="profileUpdate" method="POST" target="_blank" novalidate> @csrf <div class="form-group mt-1" style="margin-bottom:0 !important"> <label for="">First Name:</label> <input class="form-control" type="text" value="{{Auth::user()->f_name}}" name="name"> </div> <div class="form-group" style="margin-bottom:0 !important"> <label for="">Last Name:</label> <input class="form-control" type="text" value="{{Auth::user()->l_name}}" name="surname"> </div> <div class="form-group" style="margin-bottom:0 !important"> <label for="">Email:</label> <input class="form-control" type="email" value="{{Auth::user()->email}}" name="email"> </div> <div class="form-group" style="margin-bottom:0 !important"> <label for="">Password:</label> <input class="form-control" type="password" placeholder="********" name="password"> </div> <div class="form-group" style="margin-bottom:0 !important"> <label for="">Confirm Password:</label> <input class="form-control" type="text" placeholder="********" name="password_confirmation"> </div> <div class="form-group mt-3"> <button class="btn btn-success" style="float:right" id="update-profile"> Save </button> </div> </form> </div> </div> </div> {{-- <script src="{{asset('js/sweetalert2.js')}}"></script> --}} <script> const form = $('#profileUpdate'); $('#update-profile').on('click', function(e){ e.preventDefault(); $.ajax({ type:"POST", url:form.attr('action'), data:form.serialize(), success: function(response){ toastRWithTime(response.message,'success'); }, error: function(xhr, status, error){ toastRWithTime(JSON.parse(xhr.responseText).message,'error'); } }); }); </script>
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings